package com.iwop.moto.service;

import com.iwop.moto.model.SuperRecordModel;

import java.util.List;

/**
 * Created by Administrator on 2016/9/3.
 */
public interface AuditHistoryService {

    /**
     * @author: liuwb by 2016-09-03  create
     * @explain: 新增 审核记录
     * @param SRModel 数据集
     */
    void insert(SuperRecordModel SRModel);

    /**
     * @author: liuwb by 2016-09-22 create
     * @explain: 查询用户审核历史记录
     * @param SRModel userId 用户id
     */
    List<SuperRecordModel> findUserAuditHistory(SuperRecordModel SRModel);

    void inserStoreAuditHistory(SuperRecordModel SRModel);

    void inserServiceAuditHistory(SuperRecordModel SRModel);

    /**
     * @author: liuwb by 2016-09-28 create
     * @explain: 查询出最近一条，根据审核人外键和类型
     * @param SRModel audit_fkey and audit_type
     */
    SuperRecordModel findHistoryByFkeyType (SuperRecordModel SRModel);

    /**
     * @author: liuwb by 2016-09-28 create
     * @explain:  更新审核状态和审核记录
     * @param SRModel
     */
    void updateAuditStatusByid(SuperRecordModel SRModel);

    void deleteAuditByParam(SuperRecordModel SRModel);
}
